Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not hard code libgo.a and libgo.so #28

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

hanabi1224
Copy link
Contributor

Currently libgo.a and libgo.so is hard coded, however, on Windows there's no lib prefix and on Windows and MacOS, the DLL suffix should be .dll and .dylib respectively. This PR tries to construct the filename with built in https://doc.rust-lang.org/stable/std/env/consts/ in rust stdlib

Copy link
Owner

@ihciah ihciah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thank you!

@ihciah ihciah merged commit b877797 into ihciah:master Oct 8, 2024
2 checks passed
@hanabi1224 hanabi1224 deleted the do-not-hard-code-libgo branch October 8, 2024 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants